<template>
  <div class="base-info">
    <h3>账户基本信息</h3>
    <el-divider></el-divider>
<!--    基本信息-->
    <el-form ref="form" :model="info" label-width="100px">
      <el-form-item label="管理员id">
        <el-input v-model="info.ad_id" disabled></el-input>
      </el-form-item>
      <el-form-item label="登录名">
        <el-input v-model="info.ad_uname" disabled></el-input>
      </el-form-item>
      <el-form-item label="姓名">
        <el-input v-model="info.ad_name" disabled></el-input>
      </el-form-item>
      <el-form-item label="性别">
        <el-input v-model="info.ad_sex" disabled></el-input>
      </el-form-item>
<!--      <el-form-item label="身份证号码">-->
<!--        <el-input v-model="info.Id" disabled></el-input>-->
<!--      </el-form-item>-->
      <el-form-item label="手机号码">
        <el-input v-model="info.ad_phone" disabled></el-input>
      </el-form-item>
      <el-form-item label="邮箱">
        <el-input v-model="info.ad_email" disabled></el-input>
      </el-form-item>
<!--      <el-form-item label="所在地址">-->
<!--        <el-input v-model="info.address" disabled>{{info.}}</el-input>-->
<!--      </el-form-item>-->

    </el-form>
    <!--    修改头像dialog-->
    <change-avatar-dialog></change-avatar-dialog>
  </div>
</template>

<script>
import {mapState,mapMutations} from "vuex";
import ChangeAvatarDialog from "@/views/profile/ChangeAvatarDialog";

export default {
  name: "BaseInfo",
  components: {ChangeAvatarDialog},
  data(){
    return{
      info:null
      // info:{
      //   name:'小米',
      //   nickName:'管理员',
      //   gender: '女',
      //   email: '2539043765@qq.com',
      //   phoneNumber: '13416753894',
      //   Id: '440583300309216583',
      //   birthday:'2003年09月',
      //   address: '广东省东莞市松山湖东莞理工学院'
      // }
    }
  },
  created(){
    let admin = window.localStorage.getItem("admin");
    this.info = JSON.parse(admin);
    this.info.ad_sex = this.info.ad_sex==0 ? "保密": (this.info.ad_sex==1 ? "男" : '女');
  }

}
</script>

<style scoped>
</style>
